from sklearn.linear_model import LinearRegression
# 读取数据
import pandas as pd
import numpy as np
data = pd.read_csv("data.csv",header=None)
#print(data)
col_123 = data[[0,1,2]]  
col_3 =data[3]
X = np.array(col_123)
Y = np.array(col_3)
#print(Y)
model = LinearRegression()
model.fit(X, Y)
print(model.coef_)